package com.itheima.service;

import com.itheima.controller.PageResult;
import com.itheima.domain.Department;
import com.itheima.domain.Patient;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author LiuJie
 * 我亦无他,唯手熟尔
 */

public interface UserService {

    @Transactional
    List<Department> queryDepartment();
    @Transactional
    Boolean addPatient(Patient patient);
    @Transactional
    PageResult queryPatientByName(Integer pageNum, Integer pageSize, String patientName);
    @Transactional
    PageResult queryPatientByPage(Integer pageNum, Integer pageSize);
}
